﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View.master" AutoEventWireup="true" CodeFile="view.aspx.cs" Inherits="view" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <table  >
 <tr>
    <td>
    <asp:GridView ID="gv" runat="server" CellPadding="4" ForeColor="#333333" 
        GridLines="None" AllowPaging="True" AutoGenerateColumns="False" 
        Width="833px" onpageindexchanging="gv_PageIndexChanging" PageSize="30">
        <RowStyle BackColor="#EFF3FB" />
        <Columns>
            <asp:HyperLinkField HeaderText="First Name"  DataTextField="FirstName" 
                DataNavigateUrlFields="FirstName" 
                DataNavigateUrlFormatString="ViewByFirstName.aspx?FirstName={0}" />
            <asp:HyperLinkField DataNavigateUrlFields="LastName" 
                DataNavigateUrlFormatString="ViewByLastName.aspx?LastName={0}" 
                DataTextField="LastName" HeaderText="Last Name" />
            <asp:BoundField DataField="email" HeaderText="Email" 
                SortExpression="email" />
            <asp:TemplateField HeaderText="Time Stamp">
              <ItemTemplate>
                    <asp:Label ID="Label1" runat="server"  Text ='<%# Eval("TimeStamp","{0:d}") %>' ></asp:Label>
                </ItemTemplate>
            
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" 
            HorizontalAlign="Left" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView> </td> </tr>
    <tr align = "center">  
    <td> <asp:Button ID="Button2" runat="server" Text="Export To Excel"  
            Font-Bold="true" Font-Size="Medium"
    onclick="Button2_Click" Height="44px"  />
    </td> </tr></table>
    <br />
<br />
<br />
<br />
<br />
<br />
   <br />
<br />
<br />
<br />
<br />
<br />
</asp:Content>

